﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Ccit.OA.MsNotify
{
    /// <summary>
    /// NTF_A2
    /// </summary>
    public class MsNotifyMessage
    {
        #region 私有属性
        private string _id;
        private string _title;              //标题
        private string _type;               //通知类型
        private string _content;            //通知内容
        private string _deptname;           //部门名称
        private string _deptid;             //部门ID
        private string _receipt;            //回执标志
        private string _receiptcontent;     //回执内容
        private string _rangemark;          //通知范围标志
        private string _range;              //通知范围
        private string _state;              //状态
        private string _importance;         //重要程度
        private string _releasetime;        //发布时间
        private string _ucount;             //通知回复人数
        private string _username;           //用户名称
        private string _endtime;            //最后阅读时间
        private string _userid;            //userid
        #endregion
       
        #region 共有属性
        /// <summary>
        /// id
        /// </summary>
        public string id
        {
            set { _id = value; }
            get { return ((!string.IsNullOrEmpty(_id)) ? _id : ""); }
        }
        /// <summary>
        /// title
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return ((!string.IsNullOrEmpty(_title)) ? _title : ""); }
        }
        /// <summary>
        /// type
        /// </summary>
        public string type
        {
            set { _type = value; }
            get { return ((!string.IsNullOrEmpty(_type)) ? _type : ""); }
        }
        /// <summary>
        /// content
        /// </summary>
        public string content
        {
            set { _content = value; }
            get { return ((!string.IsNullOrEmpty(_content)) ? _content : ""); }
        }
        /// <summary>
        /// deptname
        /// </summary>
        public string deptname
        {
            set { _deptname = value; }
            get { return ((!string.IsNullOrEmpty(_deptname)) ? _deptname : ""); }
        }
        /// <summary>
        /// deptid
        /// </summary>
        public string deptid
        {
            set { _deptid = value; }
            get { return ((!string.IsNullOrEmpty(_deptid)) ? _deptid : ""); }
        }
        /// <summary>
        /// _receipt
        /// </summary>
        public string receipt
        {
            set { _receipt = value; }
            get { return ((!string.IsNullOrEmpty(_receipt)) ? _receipt : ""); }
        }
        /// <summary>
        /// _receiptcontent
        /// </summary>
        public string receiptcontent
        {
            set { _receiptcontent = value; }
            get { return ((!string.IsNullOrEmpty(_receiptcontent)) ? _receiptcontent : ""); }
        }
        /// <summary>
        /// rangemark
        /// </summary>
        public string rangemark
        {
            set { _rangemark = value; }
            get { return ((!string.IsNullOrEmpty(_rangemark)) ? _rangemark : ""); }
        }
        /// <summary>
        /// _range
        /// </summary>
        public string range
        {
            set { _range = value; }
            get { return ((!string.IsNullOrEmpty(_range)) ? _range : ""); }
        }
        /// <summary>
        /// _state
        /// </summary>
        public string state
        {
            set { _state = value; }
            get { return ((!string.IsNullOrEmpty(_state)) ? _state : ""); }
        }
        /// <summary>
        /// _importance
        /// </summary>
        public string importance
        {
            set { _importance = value; }
            get { return ((!string.IsNullOrEmpty(_importance)) ? _importance : ""); }
        }
        /// <summary>
        /// _releasetime
        /// </summary>
        public string releasetime
        {
            set { _releasetime = value; }
            get { return ((!string.IsNullOrEmpty(_releasetime)) ? _releasetime : ""); }
        }
        /// <summary>
        /// ucount
        /// </summary>
        public string ucount
        {
            set { _ucount = value; }
            get { return ((!string.IsNullOrEmpty(_ucount)) ? _ucount : ""); }
        }
        /// <summary>
        /// username
        /// </summary>
        public string username
        {
            set { _username = value; }
            get { return ((!string.IsNullOrEmpty(_username)) ? _username : ""); }
        }
        /// <summary>
        /// endtime
        /// </summary>
        public string endtime
        {
            set { _endtime = value; }
            get { return ((!string.IsNullOrEmpty(_endtime)) ? _endtime : ""); }
        }
        /// <summary>
        /// userid
        /// </summary>
        public string userid
        {
            set { _userid = value; }
            get { return ((!string.IsNullOrEmpty(_userid)) ? _userid : ""); }
        }
        #endregion
        #region method
        public MsNotifyMessage()
        { }
        public MsNotifyMessage(string sID,string sTitle,string sType,string sContent,string sDeptName,string sDeptID,
                               string sReceipt,string sRangemark,string sRange,string sState,string sInportance,
                                string sReleasetime,string sUcount, string sReceiptcontent,string sUserName,string sEndTime,string sUserId)
        {
            _id = sID;
             _title = sTitle;                //标题
             _type = sType;                  //通知类型
             _content = sContent;            //通知内容
             _deptname = sDeptName;          //部门名称
             _deptid = sDeptID;              //部门ID
             _receipt = sReceipt;            //回执标志
             _rangemark = sRangemark;        //通知范围标志
             _range = sRange;                //通知范围
             _state = sState;                //状态
             _importance = sInportance;      //重要程度
             _releasetime = sReleasetime;    //发布时间
             _ucount = sUcount;
             _receiptcontent = sReceiptcontent;
             _username = sUserName;
             _endtime = sEndTime;
             _userid = sUserId;
              
        }
        #endregion
    }
}
